body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #212121;
}

#challenge26 .line {
    width: 300px;
    border-bottom: 4px solid white;
    position: relative;
    animation: animateline 10s linear infinite;
}

#challenge26 .hexagon {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 50px;
    height: 50px;
    background-color: white;
    animation: animatehexagon 10s linear infinite;
    bottom: 10px;
}

#challenge26 .hexagon:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: rotate(60deg);
}

#challenge26 .hexagon:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: rotate(-60deg);
}

@keyframes animatehexagon {
    0% {
        left: 0;
    }
    50% {
        left: calc(100% - 50px);
        transform: rotate(720deg);
    }
    100% {
        left: 0;
    }
}

@keyframes animateline {
    0% {
        transform: rotate(30deg);
    }
    25% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-30deg);
    }
    75% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(30deg);
    }
}